<extend name="Public/base" />

<block name="wrapper">
  <div class="row">
    <div class="col-lg-12">
      <div class="panel panel-default">
        <div class="panel-heading">瓜子精选图片管理</div>
        <!-- /.panel-heading -->
        <div class="panel-body">
          <div class="dataTable_wrapper">
            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
              <thead>
                <tr>
                  <th>id</th>
                  <th>主题</th>
                  <th>图片</th>
                  <th>状态</th>
                  <th>链接</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>

                <foreach name="data" item="vo">
                  <tr>
                    <td>{$vo['id']}</td>
                    <td>{$vo['title']}</td>
                    <td>{$vo['photo']}</td>
                    <td>{$vo['status']}</td>
                    <td>{$vo['link']}</td>
                    <td>
                    <a href="{:U('Gzjxt/add')}">添加图片</a>
                      |
                      <a href="{:U('Gzjxt/find',['id'=>$vo['id']])}">修改</a> |
                      <!-- 必须通知一下对应的控制器方法是否可以做删除 -->
                      <a href="{:U('Gzjxt/destroy', ['id'=>$vo['id']])}">禁用</a> |
                      <a href="{:U('Gzjxt/qi', ['id'=>$vo['id']])}">启用</a> 

                    </td>
                  </tr>

                </foreach>

              </tbody>
            </table>
          </div>
          <!-- /.table-responsive -->
        </div>
        <!-- /.panel-body -->
      </div>
      <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
  </div>

</block>